Bit error position estimation in data decoder

ABSTRACT

A bit error position is estimated. The estimation method includes generating data indicative of a substantial number of bit error locations in data frames. The generation of the data includes re-encoding decoded bit stream, mapping the bit stream to a first set of symbols, and determining a soft decision distance between a second set of symbols received through a data transmission channel and the first set of symbols. The generated data is then used to estimate the bit error locations. The estimation process includes capturing metric data for each bit in the data frame and obtaining derivative of the metric data. The derivative may be filtered for further processing. Error position estimation criteria may then be applied to estimate the bit error positions.

BACKGROUND

[0001] The present invention relates to bit errors, and more particularly, to estimating bit error positions in a data decoder.

[0002] Error correcting techniques for correcting bit errors in digital data are often used to improve the reliability of data transmission. These techniques attempt to accurately retrieve the data with lowest bit error rate (BER). For example, a scheme of coding data by using convolutional codes and performing maximum likelihood decoding by using Viterbi decoding has a high error correcting capability. However, certain data such as compressed video data may be especially sensitive to bit errors. Thus, data frames containing bit errors may be identified using techniques such as cyclic redundancy check. In some applications or protocols, such as Transmission Control Protocol (TCP), these data frames containing bit errors may be retransmitted. However in other applications or protocols, such as real-time streaming video or User Datagram Protocol (UDP), re-transmission of error frames may not be practical or supported.

[0003] Further, when a frame of data such as video data known to contain errors is decoded for display, data recovery and/or error concealment techniques may be employed to mitigate visual distortions or artifacts caused by the errors. However if the position of bit errors within the frame cannot be estimated, substantially all or most of the error frame data, including both corrupted and uncorrupted data, may have to be discarded. Therefore, data recovery and/or error concealment techniques may be made substantially less practical when even the uncorrupted data is discarded.

SUMMARY

[0004] In one aspect, a method for estimating a bit error position is disclosed. The estimation method includes generating data indicative of a substantial number of bit error locations in data frames. The data generation includes re-encoding decoded bit stream, mapping the bit stream to a first set of symbols, and determining a soft decision distance between a second set of symbols received through a data transmission channel and the first set of symbols. The generated data is then used to estimate the bit error locations. The estimation process includes capturing metric data for each bit in the data frame and obtaining derivative of the metric data. The derivative may be filtered for further processing. Error position estimation criteria may then be applied to estimate the bit error positions.

[0005] In another aspect, a bit error position estimation system is disclosed. The system includes a de-interleaver, a convolutional decoder, a convolutional re-encoder, a map symbol generator, and a position estimation metric generator. In some systems, the de-interleaver and the convolutional decoder are part of the existing receiver in a data transmission system. The de-interleaver receives and de-interleaves a first set of encoded data symbols. The convolutional decoder performs maximum likelihood decoding of the data symbols into data bit stream. The convolutional re-encoder re-codes decoded data bit stream. The map symbol generator maps the re-coded bit stream to a second set of data symbols. The position estimation metric generator then determines metric data between the first and second sets of data symbols.

BRIEF DESCRIPTION OF THE DRAWINGS

[0006]FIG. 1 is a flowchart describing a method for estimating the approximate position of bit errors in accordance with an embodiment of the present invention.

[0007]FIG. 2 shows a bit error position data generation process according to one embodiment.

[0008]FIG. 3 is a block diagram of a bit error position estimation system according to an embodiment of the present invention.

[0009]FIG. 4 illustrates a process for estimating the bit error locations from the generated data in accordance with an embodiment.

[0010]FIG. 5 shows a data sequence waveform exhibiting characteristic patterns indicative of bit error locations.

DETAILED DESCRIPTION

[0011] In recognition of the above-stated difficulties with prior data recovery and/or error concealment techniques, the present invention describes embodiments for incorporating the bit error position estimation into these techniques. Thus, effectiveness of some data recovery and/or error concealment techniques may improve substantially if approximate locations of errors within the frame of data are known. Consequently for purposes of illustration and not for purposes of limitation, the exemplary embodiments of the invention are described in a manner consistent with such use, though clearly the invention is not so limited.

[0012]FIG. 1 is a flowchart describing a method for estimating the approximate position of bit errors in accordance with an embodiment of the present invention. The data indicative of a substantial number of bit error locations may be captured or generated at 100. In the illustrated embodiment, the data is generated during decoding of data frames. In other embodiments, the data may be generated at different stages of processing received data. At 102, a determination is made as to whether the generated data includes any errors.

[0013] As stated above, the presence of errors in the data frame may be determined using cyclic redundancy check. The cyclic redundancy checksum (CRC), included in transmitted frame data, indicates whether a frame includes bit errors. Other frame error indications may also be available. When the frame CRC indicates that bit errors exist within the current frame, bit error locations may be estimated from the generated data at 104. The bit error location estimation may then be provided to the data recovery and/or error concealment functions, at 106. The bit error position estimations may be formatted appropriately for use in data recovery, error concealment, error correction, and/or other similar applications. Otherwise if no errors exist, the error position estimation data is discarded and the process continues to the next frame, at 100.

[0014] A process for generation of data indicative of bit error locations (see 100 in FIG. 1) may be implemented in several different embodiments. In one embodiment, the bit error position data generation process 100 may be implemented by creating a bit-wise metric from soft decision. In another embodiment, the bit error position data generation process may be implemented by extracting bit-wise maximum likelihood (MLH) metric. In this embodiment, the MLH metric may be generated stage-by-stage during Viterbi decoding of the convolutionally encoded bit stream. The metrics in both embodiments provide a bit-wise likelihood of incorrect reception of data bits. These bit-wise confidence measures may be used generally for estimating the location of bit errors in data frames.

[0015] Since maximum likelihood detection is already calculated in the Viterbi decoder, the generation of MLH metric may require little additional processing. Moreover, it is determined that MLH metric provides a more sensitive measure than the soft decision metric. Thus, MLH metric may produce fewer false error indications than the metric derived from soft decisions. However, the MLH metric may not be externally available in some decoder hardware implementations. Therefore, symbol soft decisions may be more readily available for use in error position estimation schemes.

[0016] The bit error position data generation process 100 according to one embodiment of the present invention is illustrated in FIG. 2. In the illustrated embodiment, the decoded bit stream is re-encoded at 200. The decoded bit stream may be a Viterbi decoder output. At 202, the re-coded bit stream is mapped to symbols. The soft decision distance between the received symbols and the re-coded symbols is then determined at 204. The soft decision distance may be calculated for each bit position using the following approach for data convolutionally encoded at rate N:

(SD_(decoder)−SD_(re-coder))_(sym) _(—) ₁ ²+(SD_(decoder)−SD_(re-coder))_(sym) _(—) ₂ ²+ . . . +(SD_(decoder)−SD_(re-coder))_(sym) _(—) _(N) ²

[0017]FIG. 3 shows a block diagram of a bit error position estimation system 300 according to an embodiment of the present invention. The system 300 includes a convolutional re-encoder 302, a map symbol generator 304, and a position estimation metric generator 306. Thus, the system 300 is configured to implement the process described in FIG. 2.

[0018] The bit error position estimation system 300 is further coupled to a data transmission system 310, which includes a transmitter 330, a receiver 332, and a data channel 316. The transmitter 330 includes a convolutional encoder 312 and an interleaver 314. The convolutional encoder 312 encodes input data bits 322 into data symbols at a fixed or variable encoding rate with an encoding technique which facilitates subsequent maximum likelihood decoding of the data symbols into data bits in a convolutional decoder, such as a Viterbi decoder 320. The data symbols may then be input to the interleaver 314. The interleaver 314 interleaves the input data symbols at the symbol level.

[0019] The encoded data is then transmitted through the data channel 316 to the receiver 332, which includes a de-interleaver 318 and a convolutional decoder 320. The de-interleaver 318 in the receiver 332 de-interleaves the encoded data symbols and sends the data symbols to the convolutional decoder 320. A convolutional decoder such as the Viterbi decoder 320 may then perform maximum likelihood decoding of the data symbols into data bits.

[0020] The bit error position estimation system 300 generates bit-wise error position estimation metric 308. The convolutional re-encoder 302 receives decoded data 324 from the Viterbi decoder 320 to re-encode the decoded bit stream. The map symbol generator 304 then maps the re-coded bit stream to symbols. The position estimation metric generator 306 determines the soft decision distance between the received symbols from the de-interleaver 318 and the re-coded symbols from the map symbol generator 304.

[0021]FIG. 4 illustrates a process for estimating the bit error locations from the generated data (see 104 in FIG. 1) in accordance with an embodiment of the present invention. The process includes capturing MLH or soft decision distance metric for each bit in a data frame, at 400. An error position estimation metric generator 306 may perform the metric capture. In the illustrated embodiment, derivative of the metric data is then obtained at 402. In one embodiment, the derivative may be obtained as a sequence of signed difference magnitudes between sequential data points.

[0022] The metric data (MLH or soft decision distance) may be manipulated into a data sequence waveform suitable for the application of error position estimation criteria. Thus at 404, a filter, such as moving average or low-pass, may be applied to the derivative of the metric data. Filtering provides a sequence of data points appropriate for bit error position estimation. The resulting data sequence waveform (shown in FIG. 5) typically exhibits characteristic patterns, such as valleys for MLH or peaks for soft decision distance, indicative of bit error locations.

[0023] Bit error positions may then be estimated, plus/minus a positional tolerance, by applying criteria such as slope/inclination magnitude or peak/valley detection to points on the filtered waveform. In the illustrated embodiment of FIG. 4, the application of criteria includes identifying the locus of points where both leading and trailing slopes exceed pre-set thresholds (at 406), and resolving or averaging the leading/trailing slope loci to produce an estimation of error position (at 408).

[0024] Error detection thresholds may be made adjustable and selected to effectively increase performance of some criteria, such as minimization of undetected errors. The threshold may also be determined adaptively, and detection confidence factors applied. The use of adjustable thresholds allows tradeoffs between bit error estimation statistics such as valid detects, false detects, and missed detects. However, error detection thresholds selected to minimize missed-detects may also cause a corresponding increase in false-detects.

[0025]FIG. 5 shows a data sequence waveform exhibiting characteristic patterns, such as valleys for MLH, indicative of bit error locations. The waveform is obtained as a result of filtering applied to the derivative of the metric data. The figure indicates a detected bit error with a diamond marker (⋄). The actual bit error is indicated with a cross hair (+) indicator. The actual error is obtained by comparing the input data 322 with the decoded data 324.

[0026] In the illustrated example of FIG. 5, there are one missed-detect 500, three false-detects 502, and six valid-detects of bit errors 504. In the figure, the extent of each vertical dotted line 506 represents a quadrant of a data frame. Accordingly, this particular example resolves the bit error position to within about a quadrant of a data frame. However, the bit error position may be estimated to a finer resolution than a frame quadrant but at correspondingly increased computation time and power.

[0027] There has been disclosed herein embodiments for incorporating the bit error position estimation into data recovery and/or error concealment techniques. Estimation of the bit error position provides relatively quick determination of areas where error concealment processing is needed. Thus, although this technique may be applicable to several different applications, the technique may be especially effective in improving the quality of recovered data in real-time applications.

[0028] While specific embodiments of the invention have been illustrated and described, such descriptions have been for purposes of illustration only and not by way of limitation. Accordingly, throughout this detailed description, for the purposes of explanation, numerous specific details were set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the system and method may be practiced without some of these specific details. For example, specific criteria/method for bit error position estimation from the generated waveform, described in FIG. 4 (see 406, 408), is for illustrative purposes only. Other comparable method such as manual detection may be employed to detect the bit error. In other instances, well-known structures and functions were not described in elaborate detail in order to avoid obscuring the subject matter of the present invention. Accordingly, the scope and spirit of the invention should be judged in terms of the claims which follow. 

What is claimed is:
 1. A method for estimating a bit error position, comprising: generating data indicative of a substantial number of bit error locations in data frames; estimating the bit error locations from the generated data when bit errors are present; and providing the estimated bit error locations.
 2. The method of claim 1, wherein the data is generated during decoding of data frames.
 3. The method of claim 1, further comprising: determining presence of bit errors in the data frames.
 4. The method of claim 3, wherein said determining presence of bit errors includes using cyclic redundancy check that indicates whether a frame includes bit errors.
 5. The method of claim 1, further comprising: discarding the estimated bit error locations when no errors are present.
 6. The method of claim 1, wherein providing the estimated bit error locations includes providing the locations to a data recovery function.
 7. The method of claim 1, wherein providing the estimated bit error locations includes providing the locations to an error concealment function.
 8. The method of claim 1, wherein said generating data indicative of a substantial number of bit error locations in data frames includes: re-encoding decoded bit stream; mapping said bit stream to a first set of symbols; and determining a soft decision distance between a second set of symbols received through a data transmission channel and said first set of symbols.
 9. The method of claim 8, wherein said soft decision distance is calculated as a squared-sum of a difference between said first set of symbols and said second set of symbols.
 10. The method of claim 8, wherein said decoded bit stream is a Viterbi decoder output.
 11. The method of claim 1, wherein said estimating the bit error locations from the generated data includes: capturing metric data for each bit in the data frame; obtaining derivative data of said metric data; filtering said derivative data; and applying error position estimation criteria to estimate bit error positions.
 12. The method of claim 11, wherein said capturing metric data includes generating maximum likelihood metric data.
 13. The method of claim 12, wherein said capturing metric data includes generating soft decision distance metric.
 14. The method of claim 11, wherein said derivative data of said metric is obtained as a sequence of signed difference magnitudes between sequential data points.
 15. The method of claim 11, wherein said metric data is processed into a data sequence waveform suitable for the application of error position estimation criteria.
 16. The method of claim 11, wherein said filtering includes applying moving average filter to said derivative data.
 17. The method of claim 11, wherein said filtering includes applying low-pass filter to said derivative data.
 18. The method of claim 11, wherein said applying error position estimation criteria includes using slope/inclination magnitude.
 19. The method of claim 11, wherein said applying error position estimation criteria includes using peak/valley detection to points on filtered data.
 20. The method of claim 11, wherein said applying error position estimation criteria includes identifying the locus of points where both leading and trailing slopes exceed preset thresholds.
 21. The method of claim 20, wherein said pre-set thresholds is made adjustable and selected to increase performance of criteria.
 22. The method of claim 21, wherein said criteria include minimization of undetected errors.
 23. The method of claim 20, wherein said thresholds are determined adaptively.
 24. The method of claim 11, wherein said applying error position estimation criteria includes averaging the leading/trailing slope loci.
 25. A method for generating data indicative of a substantial number of bit error locations in data frames, comprising: re-encoding decoded bit stream; mapping said bit stream to a first set of symbols; and determining a soft decision distance between a second set of symbols received through a data transmission channel and said first set of symbols.
 26. The method of claim 25, wherein said soft decision distance is calculated as a squared-sum of a difference between said first set of symbols and said second set of symbols.
 27. A method for estimating bit error locations in a data frame, comprising: capturing metric data for each bit in the data frame; obtaining derivative data of said metric data filtering said derivative data; and applying error position estimation criteria to estimate bit error positions.
 28. The method of claim 27, wherein said capturing metric data includes generating maximum likelihood metric data.
 29. The method of claim 27, wherein said capturing metric data includes generating soft decision distance metric.
 30. A bit error position estimation system coupled to a data receiver, comprising: a convolutional re-encoder arranged to re-code decoded data bit stream from the data receiver; a map symbol generator to map the re-coded bit stream to a first set of data symbols; and a position estimation metric generator to determine a metric data between said first set of data symbols and a second set of data symbols received from the data receiver.
 31. The method of claim 30, further comprising: a data channel; a de-interleaver arranged to receive and de-interleave the second set of encoded data symbols from the data channel; and a convolutional decoder to perform maximum likelihood decoding of the second set of data symbols into data bit stream.
 32. The method of claim 31, further comprising: a convolutional encoder to encode input data bits into data symbols; and an interleaver arranged to interleave data symbols, said interleaver operating to transmit said data symbols through the data channel. 